package org.dreamwork.jasmine2.ajax;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-12-10
 * Time: 16:44:28
 */
public class AjaxException extends RuntimeException {
    private int code;

    public AjaxException (int code) {
        this.code = code;
    }

    public AjaxException (String message, int code) {
        super (message);
        this.code = code;
    }

    public AjaxException (String message, Throwable cause, int code) {
        super (message, cause);
        this.code = code;
    }

    public AjaxException (Throwable cause, int code) {
        super (cause);
        this.code = code;
    }

    public int getCode () {
        return code;
    }

    public void setCode (int code) {
        this.code = code;
    }
}
